<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

</body>
<script>
    let name = '尚硅谷';
    let slogon = '永远追求行业更高标准';
    let improve = function () {
        console.log('可以提高你的技能');
    }
    //属性和方法简写
    let atguigu = {
        name,
        slogon,
        improve,
        change() {
            console.log('可以改变你')
        }
    };
    improve();
    atguigu.change();
    console.log(atguigu.name);

</script>

</html>